#ifndef __MAIN_SERVER_H__
#define __MAIN_SERVER_H__

class TcpServer;
class ThreadPool;
class Reactor;

class MainServer {
private:
    TcpServer* m_server;    //主线程用来接受连接
    ThreadPool* m_pool;     //线程池，接受每个连接
    Reactor* m_reactor;     //每个线程上一个Reactor模式
public:
    MainServer();
    ~MainServer();

    static void ListenEventCallBack(int fd, short events, void* arg);
};


#endif